package com.smallA.association.constant;

/**
 * @author 君未
 */
public class DataConstant {

    public static final String TOKEN_MSG = "msg";
    public static final String TOKEN_CODE = "code";
    public static final String TOKEN_DATA = "data";
    public static final String TOKEN_HAND = "Bearer ";
    public static final String TOKEN_NAME = "Authorization";
    public static final String TOKEN_MSG_OK = "认证通过!";
    public static final String TOKEN_MSG_UNAUTHORIZED = "用户名或密码错误";
    public static final String TOKEN_MSG_FORBIDDEN = "请登录后在执行操作";
    public static final String USER_ID = "id";
    public static final String USER_NAME_ASSOCIATION_HEAD = "association_";

    public static final Integer MSG_CODE_BAD_REQUEST = 400;
    public static final String MSG_BAD_REQUEST = "坏访问, 请求的语法或数据含有错误";
    public static final Integer MSG_CODE_NOT_FOUND = 404;
    public static final String MSG_NOT_FOUND = "服务器无法找到对应的资源";
    public static final String MSG_BAD_UPDATE = "修改失败，请稍后再试";

    public static final Integer UPDATE_DEPARTMENT_SUCCESS = 2000;
    public static final Integer UPDATE_DEPARTMENT_FAIL = 4000;
    public static final Integer NOTICE_EMAIL_SUCCESS = 2001;
    public static final Integer NOTICE_EMAIL_FAIL = 4001;
    public static final Integer EXPORT_EXCEL_SUCCESS = 2002;
    public static final Integer EXPORT_EXCEL_FAIL = 4002;
    public static final Integer ASSOCIATION_REGISTER_SUCCESS = 2003;
    public static final Integer ASSOCIATION_REGISTER_FAIL = 4003;
    public static final Integer UPDATE_ASSOCIATION_DATA_SUCCESS = 2005;
    public static final Integer UPDATE_ASSOCIATION_DATA_FAIL = 4005;
    public static final Integer REGISTER_SUCCESS = 2006;
    public static final Integer REGISTER_FAIL = 4006;
    public static final Integer EMAIL_CODE_SUCCESS = 2007;
    public static final Integer EMAIL_CODE_FAIL = 4007;
    public static final Integer LOGIN_SUCCESS = 2008;
    public static final Integer LOGIN_FAIL = 4008;
    public static final Integer UPLOAD_PHOTO_SUCCESS = 2009;
    public static final Integer UPLOAD_PHOTO_FAIL = 4009;
    public static final Integer SELECT_DEPARTMENT_SUCCESS = 2010;
    public static final Integer SELECT_DEPARTMENT_FAIL = 4010;
}
